package net.dgg.dggcloud.service.jrcrm.entity.cms;

import net.dgg.dggcloud.service.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Created by Administrator on 2017/11/2.
 */
@Entity
@Table(name = "cms_faq")
public class Faq extends BaseEntity{
//    @Id
//    @Column(name = "id")
//    private Long id;

    /**
     * 标题
     */
    @Column(name = "title")
    private String title;

    /**
     * 内容
     */
    @Column(name = "content",length = 2000)
    private String content;

    /**
     * 状态
     */
    @Column(name = "status")
    private Integer status; //0:删除 1：已发布 2：待发布 3：取消发布

    /**
     * 类别
     */
    @Column(name = "catgory_code")
    private String categoryCode;

    /**
     * 评价
     */
    @Column(name = "evaluate")
    private String evalueate;

    /**
     * 适用阶段
     */
    @Column(name = "apply_stage")
    private String applyStage;

    /**
     * 适用产品
     */
    @Column(name = "apply_product")
    private String applyProduct;

    /**
     * 适用角色
     */
    @Column(name = "apply_role")
    private String applyRole;

    /**
     * 有用 计数
     */
    @Column(name = "helpful")
    private Long helpful = 0L;

    /**
     * 无用计数
     */
    @Column(name ="unhelpful")
    private Long unhelpful = 0L;

    /**
     * 类型（0：faq,1:系统问题）
     */
    @Column(name="type")
    private Integer type = 0;

    /**
     * 适用区域
     */
    @Column(name="apply_area")
    private String applyArea;

    public String getApplyArea() {
        return applyArea;
    }

    public void setApplyArea(String applyArea) {
        this.applyArea = applyArea;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Long getHelpful() {
        return helpful;
    }

    public void setHelpful(Long helpful) {
        this.helpful = helpful;
    }

    public Long getUnhelpful() {
        return unhelpful;
    }

    public void setUnhelpful(Long unhelpful) {
        this.unhelpful = unhelpful;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getCategoryCode() {
        return categoryCode;
    }

    public void setCategoryCode(String categoryCode) {
        this.categoryCode = categoryCode;
    }

    public String getEvalueate() {
        return evalueate;
    }

    public void setEvalueate(String evalueate) {
        this.evalueate = evalueate;
    }

    public String getApplyStage() {
        return applyStage;
    }

    public void setApplyStage(String applyStage) {
        this.applyStage = applyStage;
    }

    public String getApplyProduct() {
        return applyProduct;
    }

    public void setApplyProduct(String applyProduct) {
        this.applyProduct = applyProduct;
    }

    public String getApplyRole() {
        return applyRole;
    }

    public void setApplyRole(String applyRole) {
        this.applyRole = applyRole;
    }
}
